<template>
  <div>
    <div class="attr-item-edit-wrapper">
      <span>动画时长：</span>
      <div class="demo-input-suffix">
        <el-input
          v-model="animationConfig.animationDuration"
          size="small"
          placeholder="请输入毫秒"
        >
        </el-input>
      </div>
    </div>
    <div class="attr-item-edit-wrapper">
      <span>轮播间隔：</span>
      <div class="demo-input-suffix">
        <el-input
          v-model="animationConfig.animationDurationUpdate"
          size="small"
          placeholder="请输入毫秒"
        >
        </el-input>
      </div>
    </div>
  </div>
</template>

<script>
// import { mapState, mapGetters } from "vuex";
// import { throttle } from "lodash";
export default {
  props:{
        animationConfig:{
            type:Object
        }
    },
  // components: {},
  // data() {
  //   return {};
  // },

  // mounted() {},
  // created() {
  //   this.throttleAddHistory = throttle(this.addHistory, 3000);
  // },
  // computed: {
  //   ...mapState({
  //     // 	projectData: state => state.editor.projectData,
  //     // 	activePageUUID: state => state.editor.activePageUUID,
  //     // 	activeElementUUID: state => state.editor.activeElementUUID,
  //     activeAttrEditCollapse: state => state.editor.activeAttrEditCollapse
  //   }),
  //   ...mapGetters([
  //     // 'currentPageIndex',
  //     // 'activeElementIndex',
  //     // 'activeElement',
  //     // 'activePage'
  //     "activeElement"
  //   ]),
    
  // },
  // methods: {
  //   addHistory() {
  //     this.$store.dispatch("addHistoryCache");
  //   }
  // }
};
</script>
<style lang="scss" scoped>
.sizeAndPosition-wrapper {
  display: flex;
  width: 100%;
}

.align-type-item {
  flex: 1;
  cursor: pointer;
  text-align: center;
  &.clearFlex {
    width: 42px;
    flex: none;
  }
  i {
    line-height: 1;
    display: inline-block;
    padding: 6px;
    border-radius: 4px;
    background: rgba(37, 165, 137, 0.08);
  }
  &:hover {
    i {
      color: white;
      background: $primary;
    }
  }
}

.attr-item-edit-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: center;
  padding-bottom: 10px;
  .attr-item-title {
    text-align: left;
    min-width: 60px;
    font-size: 12px;
  }
  .attr-item-edit-input {
    &.col-2 {
      width: 90px;
      margin-left: 10px;
    }
    &.col-1 {
      width: 250px;
    }
    &.col-3 {
      width: 60px;
      margin-left: 10px;
    }
    &.col-4 {
      width: 50px;
      margin-left: 10px;
    }
    .attr-item-edit-input-des {
      text-align: center;
      line-height: 1;
      margin-top: 2px;
      font-size: 12px;
      color: $gray;
    }
  }
}
</style>
<style lang="scss">
.attr-item-edit-wrapper {
  .el-input-number.is-controls-right .el-input__inner {
    padding-left: 2px;
    padding-right: 32px;
    width: 90px;
  }
  .el-input-number--mini {
    width: 90px;
  }
  .el-slider__runway.show-input {
    margin-right: 108px;
  }
}
</style>